package com.hyperfix.utils.common;

/**
 * @author JiangChunYu
 * 2024/3/19
 */
public class BinaryUtil {
    public static String toBinaryString(byte b) {
        StringBuilder sb = new StringBuilder();
        for (int i = 7; i >= 0; i--) {
            sb.append((b >> i) & 1);
        }
        return sb.toString();
    }
}
